package edu.pku.sei.transformation.editor.parser.texttemplate.equivalence;

import java.util.HashSet;
import java.util.Set;

public abstract class EquivalenceElement<T> {
	public Set<T> elements = new HashSet<T>();
	public boolean isVisited = false;
	
	public boolean merge(EquivalenceElement otherElement) {
		if (otherElement == this)
			return true;
		elements.addAll(otherElement.elements);
		return true;
	}
	
}
